Skip to content

Conversation

@NickChittle
Copy link
Contributor

@NickChittle NickChittle commented Jan 27, 2026

Add support for firestoreDataAccessMode, mongodbCompatibleDataAcessMode, and realtimeUpdatesMode parameters in the google_firestore_database resource

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

firestore: Add support for `firestoreDataAccessMode`, `mongodbCompatibleDataAcessMode`, and `realtimeUpdatesMode` parameters in the `google_firestore_database` resource

…de, and realtimeUpdatesModes parameters in the google_firestore_database resource
@github-actions github-actions bot requested a review from roaks3 January 27, 2026 21:13
@github-actions
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@roaks3, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 93 insertions(+))
google-beta provider: Diff ( 3 files changed, 93 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 30 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_firestore_database (33 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_firestore_database" "primary" {
  firestore_data_access_mode          = # value needed
  mongodb_compatible_data_access_mode = # value needed
  realtime_updates_mode               = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 30
Passed tests: 30
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • firestore

🟢 All tests passed!

View the build log

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 149 insertions(+))
google-beta provider: Diff ( 4 files changed, 149 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 30 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 31
Passed tests: 30
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • firestore

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccFirestoreDatabase_firestoreDatabaseDataAccessExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccFirestoreDatabase_firestoreDatabaseDataAccessExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

- name: 'firestoreDataAccessMode'
type: Enum
description: |
The Firestore API data access mode to use for this database.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if one of these is set for a Datastore mode database? (Same question about Mongo-compat API for Datastore mode).

And if the Firestore API data access mode is enabled, does that allow using the Datastore API against that database?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are blocked by the backend.

Trying to create an ENTERPRISE database in datastore-mode throws this error:
INVALID_ARGUMENT: Enterprise Edition is only supported for Firestore Native databases.

Trying to create a STANDARD database datastore-mode with one of the data-access modes throws this error:
INVALID_ARGUMENT: Only Enterprise Edition is allowed to set Data Access Mode.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha. In that case let's just leave something in the descriptions specifying the allowed editions and modes.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 149 insertions(+))
google-beta provider: Diff ( 4 files changed, 149 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 30 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 31
Passed tests: 30
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • firestore

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccFirestoreDatabase_firestoreDatabaseDataAccessExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccFirestoreDatabase_firestoreDatabaseDataAccessExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 149 insertions(+))
google-beta provider: Diff ( 4 files changed, 149 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 30 insertions(+))

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 149 insertions(+))
google-beta provider: Diff ( 4 files changed, 149 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 30 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 31
Passed tests: 30
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • firestore

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccFirestoreDatabase_firestoreDatabaseDataAccessExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccFirestoreDatabase_firestoreDatabaseDataAccessExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 31
Passed tests: 30
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • firestore

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccFirestoreDatabase_firestoreDatabaseDataAccessExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccFirestoreDatabase_firestoreDatabaseDataAccessExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 150 insertions(+))
google-beta provider: Diff ( 4 files changed, 150 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 30 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 31
Passed tests: 30
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • firestore

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccFirestoreDatabase_firestoreDatabaseDataAccessExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccFirestoreDatabase_firestoreDatabaseDataAccessExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 151 insertions(+))
google-beta provider: Diff ( 4 files changed, 151 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 30 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 31
Passed tests: 30
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • firestore

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccFirestoreDatabase_firestoreDatabaseDataAccessExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccFirestoreDatabase_firestoreDatabaseDataAccessExample [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants